package com.kaifamiao.N0730;

import java.util.Scanner;

public class Person1 extends Bank {
    static String name1;

    static int account1;

    static int password1;

    public static void main(String[] args) {

        //Bank sup = new Bank();
        //sup.q();
        Scanner un = new Scanner(System.in);

        System.out.println("欢迎来到 开发喵 银行");

        System.out.println("您是否在开发喵银行有账户？1 有。2 没有。");
        int v = un.nextInt();
        Person g = new Person();
        Bank sup = new Bank();
        Bank1 sub = new Bank1();

        if(v == 2){
            System.out.println("请输入注册姓名");
            name1 = un.next();
            System.out.println("请输入注册账号");
            account1 = un.nextInt();
            System.out.println("请输入注册密码");
            password1 = un.nextInt();
            sup.q() ;
            sub.y();
        }
        if(v == 1) {
            sup.q();
            g.log();
            sub.y();
        }

    }
}